home *** CD-ROM | disk | FTP | other *** search
/ MacHack 1997 / MacHack 1997.toast / Hacks / Hacks ’97 / Warrior’s Progress / source code / Source / Libraries / Attributes / HasHorizontalJustification.h < prev    next >
Encoding:
Text File  |  1997-06-28  |  531 b   |  26 lines  |  [TEXT/CWIE]

  1. // HasHorizontalJustification.h
  2.  
  3. #ifndef HasHorizontalJustification_h
  4. #define HasHorizontalJustification_h
  5.  
  6. class Justification;
  7.  
  8. class HasHorizontalJustification
  9.   {
  10.     private:
  11.         const Justification *horizontal;
  12.     
  13.     protected:
  14.         virtual void HorizontalJustificationChanged() = 0;
  15.         
  16.     public:
  17.         HasHorizontalJustification( const Justification& j )
  18.           : horizontal( &j )
  19.           {}
  20.         
  21.         const Justification& HorizontalJustification() const        { return *horizontal; }
  22.         void SetHorizontalJustification( const Justification& );
  23.   };
  24.  
  25. #endif
  26.